Extend test suite with comprehensive coverage for core utility modules#10
Draft
Extend test suite with comprehensive coverage for core utility modules#10
Conversation
Co-authored-by: francescortu <90980154+francescortu@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Extend test
Extend test suite with comprehensive coverage for core utility modules
Jul 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR significantly expands the test coverage for EasyRoutine by adding comprehensive test suites for previously untested core utility modules. The changes address the lack of test coverage identified in issue #9.
What's Added
New Test Files (89 new test methods total):
🔧
test/test_utils.py(10 tests)path_to_parents()andpath_to_relative()functions📝
test/test_logger.py(20 tests)warning_once()deduplication functionalitysetup_logging,enable_*,disable_logging)📊
test/test_progress.py(37 tests)LoggingProgressclass with time and frequency-based updatesis_non_interactive_batch)NoOpProgressclass for disabled progress trackingprogress()function with all parameter combinations🪝
test/test_hooks.py(22 tests)process_args_kwargs_output(),restore_same_args_kwargs_output()multiply_pattern()for ablation functionalitycompute_statistics()with comprehensive edge casesKey Improvements
Testing Philosophy
The new tests focus on:
These tests provide a solid foundation for the core utility infrastructure that supports EasyRoutine's interpretability functionality, making the codebase more reliable and maintainable.
Fixes #9.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.